package com.grade.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.grade.common.annotation.Excel;
import com.grade.common.core.domain.BaseEntity;

/**
 * 评分标准分类对象 g_grade_type
 * 
 * @author grade
 * @date 2021-10-17
 */
public class GradeType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    private Long typeId;
    private Long templateId;

    private String templateName;

    /** 父分类ID */
    private Long parentId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String typeName;
    private Integer typeOrder;

    /** 父分类名称 */
    @Excel(name = "父分类名称")
    private String parentTypeName;

    @Excel(name = "层级")
    private Integer layer;

    /** 计分方式（1分数、2权重） */
    @Excel(name = "计分方式", readConverterExp = "1=分数、2权重")
    private String scoreModel;

    @Excel(name = "权重")
    private Integer weight;

    /** 分类状态（0正常 1停用） */
    @Excel(name = "分类状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @Excel(name = "最高分数")
    private Float maxScore;

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setParentTypeName(String parentTypeName) 
    {
        this.parentTypeName = parentTypeName;
    }

    public String getParentTypeName() 
    {
        return parentTypeName;
    }
    public void setScoreModel(String scoreModel) 
    {
        this.scoreModel = scoreModel;
    }

    public String getScoreModel() 
    {
        return scoreModel;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Integer getLayer() {
        return layer;
    }

    public void setLayer(Integer layer) {
        this.layer = layer;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Integer getTypeOrder() {
        return typeOrder;
    }

    public void setTypeOrder(Integer typeOrder) {
        this.typeOrder = typeOrder;
    }

    public Float getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(Float maxScore) {
        this.maxScore = maxScore;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getTypeId())
            .append("parentId", getParentId())
            .append("typeName", getTypeName())
            .append("parentTypeName", getParentTypeName())
            .append("scoreModel", getScoreModel())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("maxScore", getMaxScore())
            .toString();
    }
}
